package com.tengju.user.domain.model.user;

import com.tengju.user.domain.shared.DomainEvent;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Value;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.PayloadApplicationEvent;

/**
 * @author chenhang
 * @Date 2021/1/14
 */
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class StarChangeEvent implements DomainEvent<StarChangeEvent>  {

    private Long idCode;
    private Integer beforeStarLevel;
    private Integer afterStarLevel;
    private String updateBy;

    @Override
    public boolean sameEventAs(StarChangeEvent other) {
        return false;
    }
}
